home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIPopupBoxObject.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  189 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPopupBoxObject.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPopupBoxObject_h__
  6. #define __gen_nsIPopupBoxObject_h__
  7.  
  8.  
  9. #ifndef __gen_nsIBoxObject_h__
  10. #include "nsIBoxObject.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIPopupBoxObject */
  21. #define NS_IPOPUPBOXOBJECT_IID_STR "33c60e14-5150-4876-9a96-2732557e6895"
  22.  
  23. #define NS_IPOPUPBOXOBJECT_IID \
  24.   {0x33c60e14, 0x5150, 0x4876, \
  25.     { 0x9a, 0x96, 0x27, 0x32, 0x55, 0x7e, 0x68, 0x95 }}
  26.  
  27. class NS_NO_VTABLE nsIPopupBoxObject : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPOPUPBOXOBJECT_IID)
  31.  
  32.   /* void showPopup (in nsIDOMElement srcContent, in nsIDOMElement popupContent, in long xpos, in long ypos, in wstring popupType, in wstring anchorAlignment, in wstring popupAlignment); */
  33.   NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar *popupType, const PRUnichar *anchorAlignment, const PRUnichar *popupAlignment) = 0;
  34.  
  35.   /* void hidePopup (); */
  36.   NS_IMETHOD HidePopup(void) = 0;
  37.  
  38.   /** 
  39.    * Allow the popup to automatically position itself.
  40.    */
  41.   /* attribute boolean autoPosition; */
  42.   NS_IMETHOD GetAutoPosition(PRBool *aAutoPosition) = 0;
  43.   NS_IMETHOD SetAutoPosition(PRBool aAutoPosition) = 0;
  44.  
  45.   /**
  46.    * Allow the popup to eat all key events
  47.    */
  48.   /* void enableKeyboardNavigator (in boolean enableKeyboardNavigator); */
  49.   NS_IMETHOD EnableKeyboardNavigator(PRBool enableKeyboardNavigator) = 0;
  50.  
  51.   /** 
  52.    * Enable automatic popup dismissal
  53.    */
  54.   /* void enableRollup (in boolean enableRollup); */
  55.   NS_IMETHOD EnableRollup(PRBool enableRollup) = 0;
  56.  
  57.   /** 
  58.    * Size the popup to the given dimensions
  59.    */
  60.   /* void sizeTo (in long width, in long height); */
  61.   NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) = 0;
  62.  
  63.   /**
  64.    * Move the popup to a point on screen
  65.    */
  66.   /* void moveTo (in long left, in long top); */
  67.   NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) = 0;
  68.  
  69. };
  70.  
  71. /* Use this macro when declaring classes that implement this interface. */
  72. #define NS_DECL_NSIPOPUPBOXOBJECT \
  73.   NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar *popupType, const PRUnichar *anchorAlignment, const PRUnichar *popupAlignment); \
  74.   NS_IMETHOD HidePopup(void); \
  75.   NS_IMETHOD GetAutoPosition(PRBool *aAutoPosition); \
  76.   NS_IMETHOD SetAutoPosition(PRBool aAutoPosition); \
  77.   NS_IMETHOD EnableKeyboardNavigator(PRBool enableKeyboardNavigator); \
  78.   NS_IMETHOD EnableRollup(PRBool enableRollup); \
  79.   NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height); \
  80.   NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top); 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSIPOPUPBOXOBJECT(_to) \
  84.   NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar *popupType, const PRUnichar *anchorAlignment, const PRUnichar *popupAlignment) { return _to ShowPopup(srcContent, popupContent, xpos, ypos, popupType, anchorAlignment, popupAlignment); } \
  85.   NS_IMETHOD HidePopup(void) { return _to HidePopup(); } \
  86.   NS_IMETHOD GetAutoPosition(PRBool *aAutoPosition) { return _to GetAutoPosition(aAutoPosition); } \
  87.   NS_IMETHOD SetAutoPosition(PRBool aAutoPosition) { return _to SetAutoPosition(aAutoPosition); } \
  88.   NS_IMETHOD EnableKeyboardNavigator(PRBool enableKeyboardNavigator) { return _to EnableKeyboardNavigator(enableKeyboardNavigator); } \
  89.   NS_IMETHOD EnableRollup(PRBool enableRollup) { return _to EnableRollup(enableRollup); } \
  90.   NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) { return _to SizeTo(width, height); } \
  91.   NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) { return _to MoveTo(left, top); } 
  92.  
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIPOPUPBOXOBJECT(_to) \
  95.   NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar *popupType, const PRUnichar *anchorAlignment, const PRUnichar *popupAlignment) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopup(srcContent, popupContent, xpos, ypos, popupType, anchorAlignment, popupAlignment); } \
  96.   NS_IMETHOD HidePopup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HidePopup(); } \
  97.   NS_IMETHOD GetAutoPosition(PRBool *aAutoPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoPosition(aAutoPosition); } \
  98.   NS_IMETHOD SetAutoPosition(PRBool aAutoPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutoPosition(aAutoPosition); } \
  99.   NS_IMETHOD EnableKeyboardNavigator(PRBool enableKeyboardNavigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableKeyboardNavigator(enableKeyboardNavigator); } \
  100.   NS_IMETHOD EnableRollup(PRBool enableRollup) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableRollup(enableRollup); } \
  101.   NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeTo(width, height); } \
  102.   NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(left, top); } 
  103.  
  104. #if 0
  105. /* Use the code below as a template for the implementation class for this interface. */
  106.  
  107. /* Header file */
  108. class nsPopupBoxObject : public nsIPopupBoxObject
  109. {
  110. public:
  111.   NS_DECL_ISUPPORTS
  112.   NS_DECL_NSIPOPUPBOXOBJECT
  113.  
  114.   nsPopupBoxObject();
  115.  
  116. private:
  117.   ~nsPopupBoxObject();
  118.  
  119. protected:
  120.   /* additional members */
  121. };
  122.  
  123. /* Implementation file */
  124. NS_IMPL_ISUPPORTS1(nsPopupBoxObject, nsIPopupBoxObject)
  125.  
  126. nsPopupBoxObject::nsPopupBoxObject()
  127. {
  128.   /* member initializers and constructor code */
  129. }
  130.  
  131. nsPopupBoxObject::~nsPopupBoxObject()
  132. {
  133.   /* destructor code */
  134. }
  135.  
  136. /* void showPopup (in nsIDOMElement srcContent, in nsIDOMElement popupContent, in long xpos, in long ypos, in wstring popupType, in wstring anchorAlignment, in wstring popupAlignment); */
  137. NS_IMETHODIMP nsPopupBoxObject::ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar *popupType, const PRUnichar *anchorAlignment, const PRUnichar *popupAlignment)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* void hidePopup (); */
  143. NS_IMETHODIMP nsPopupBoxObject::HidePopup()
  144. {
  145.     return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147.  
  148. /* attribute boolean autoPosition; */
  149. NS_IMETHODIMP nsPopupBoxObject::GetAutoPosition(PRBool *aAutoPosition)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153. NS_IMETHODIMP nsPopupBoxObject::SetAutoPosition(PRBool aAutoPosition)
  154. {
  155.     return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157.  
  158. /* void enableKeyboardNavigator (in boolean enableKeyboardNavigator); */
  159. NS_IMETHODIMP nsPopupBoxObject::EnableKeyboardNavigator(PRBool enableKeyboardNavigator)
  160. {
  161.     return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163.  
  164. /* void enableRollup (in boolean enableRollup); */
  165. NS_IMETHODIMP nsPopupBoxObject::EnableRollup(PRBool enableRollup)
  166. {
  167.     return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169.  
  170. /* void sizeTo (in long width, in long height); */
  171. NS_IMETHODIMP nsPopupBoxObject::SizeTo(PRInt32 width, PRInt32 height)
  172. {
  173.     return NS_ERROR_NOT_IMPLEMENTED;
  174. }
  175.  
  176. /* void moveTo (in long left, in long top); */
  177. NS_IMETHODIMP nsPopupBoxObject::MoveTo(PRInt32 left, PRInt32 top)
  178. {
  179.     return NS_ERROR_NOT_IMPLEMENTED;
  180. }
  181.  
  182. /* End of implementation class template. */
  183. #endif
  184.  
  185. nsresult
  186. NS_NewPopupBoxObject(nsIBoxObject** aResult);
  187.  
  188. #endif /* __gen_nsIPopupBoxObject_h__ */
  189.